﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BrowseFolder.aspx.cs" Inherits="CRMWeb.Pages.BrowseFolder" %>

<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/EasyUI/Themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="/EasyUI/Themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="/Css/CrmStyle.css" />
    <script type="text/javascript" src="/Scripts/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/EasyUI/jquery.easyui.min.js"></script>
    <script src="../Scripts/AppDetail.js"></script>
    <style>
        .imgBts
        {
            margin-left:2px;
            height:19px;
           vertical-align:middle;

        }
		    .errorMsg{FONT-SIZE: 8.25pt; COLOR: red; FONT-FAMILY: Verdana, Arial; TEXT-DECORATION: none }
			.hilite { BACKGROUND-COLOR: #dfe5ff }
			.nohilite { BACKGROUND-COLOR: #ffffff }
			.text { FONT-SIZE: 8.25pt; COLOR: black; FONT-FAMILY: Verdana, Arial; TEXT-DECORATION: none }
			.tableOutlineWt { BORDER-RIGHT: #cccccc 1px solid;BORDER-TOP: #666666 1px solid; MARGIN-TOP: 0px; OVERFLOW: auto; BORDER-LEFT: #333333 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #cccccc 1px solid }
		</style>
</head>
<body>
    <form id="frmOpenDialog" runat="server">
        <script type="text/ecmascript">
            $(document).ready(function (rec)
            {
                BindDataTableForApplication(GetQueryStringParams("app_id"));
                var txtVal = document.getElementById('_browseTextBox').value;
               
                if (txtVal == '')
                {
                    document.getElementById('_browseTextBox').value= "C:\\";
                }
                else
                {

                }
            });



            function SelectAndClose() {
                txtValue = document.getElementById('_browseTextBox');
                window.returnValue = txtValue.value;
                window.close();
                return false;
            }



    </script>
        <div id="pnlOpenDialog" title="Browse Files and Folder" class="easyui-panel" style="width:auto;height:auto">
         <table width="100%" border="0" style="background-color:rgb(255, 220, 185)">
                
               
               <tr>
                    <td><asp:Label ID="error" runat="server" CssClass="errorMsg" ></asp:Label>
                       </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="_browseTextBox" runat="server" CssClass="toolbar" Width="300px" /><asp:ImageButton ID="_browseButton" CssClass="imgBts"  ImageUrl="../Media/go_button_g.gif"  runat="server" OnClick="_browseButton_Click" />
                    </td>
                </tr>
                <tr>
                    <td >
                        <div class="tableOutlineWt" style="width: 313px; height: 371px; background-color: white">
                            <table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" border="0">
                                <tr>
                                    <td>
                                        
                                            <asp:TreeView ID="TreeView1" runat="server" Height="326px" ImageSet="XPFileExplorer"
                                                NodeIndent="15" Width="292px" >
                                                <ParentNodeStyle Font-Bold="False" />
                                                <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                                                <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                                                    VerticalPadding="0px" />
                                                <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
                                                    NodeSpacing="0px" VerticalPadding="2px" />
                                                <LeafNodeStyle ImageUrl="../Media/icon_file.gif" />
                                            </asp:TreeView>
                                       
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td align=left>
                        
                        
                        <asp:ImageButton ID="_selectButton" ImageUrl="../Media/okay.gif" OnClientClick="SelectAndClose();"
                            runat="server" />
                    </td>
                </tr>
            </table>
           </div>
        </form>
</body>
    </html>
